package com.wuxiaoqin.server.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuxiaoqin.server.entity.Commodity;
import com.wuxiaoqin.server.entity.Goodsimg;
import com.wuxiaoqin.server.entity.Goodsstock;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-10-28
 */
public interface ICommodityService extends IService<Commodity> {

    List<Commodity> goodsBySale(Integer number);

    List<Commodity> getHotGood(Integer fristmenu,Integer number);

    Page<Commodity> getAllGoods(Integer pn, Integer size);

    Commodity getGoodById(Integer id);

    Page<Commodity> exploreClassGoods(Integer pn, Integer size, Integer firstClass, Integer secondClass, BigDecimal maxPrice, BigDecimal minPrice);

    Goodsstock getGoodsStockById(Integer id);

    Goodsimg getGoodsImgById(Integer id);
}
